<template>
    <div class="testb">
        <h1>{{$store.state.flag}}</h1>
        
        <h2>test {{num}}</h2>
        <ul>
            <li v-for="(v,i) in lists" :key="i">{{v}}</li>
        </ul>
    </div>
</template>

<script>
export default {
    name:'testB',    //别名
    data() {
        return {
            lists:[1,2,3,4,5]
        }
    },
    props:['num']
}
</script>

<style>
.testb {
    background: #f60;
}

</style>